﻿@using Models
@model List<News>
@{
    ViewBag.Title = "News";
}

<h2>News</h2>



@if (Model != null)
{
    for (int i = ViewBag.pager.StartIndex - 1; i <= ViewBag.pager.EndIndex - 1; i++)
    {
        ViewBag.i = i;
        @Html.Partial("_oneNews")
    }
}
else
{
    <span>No news!</span>
}
